﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace VehicleMaintenance.Comm
{
	/// <summary>
	/// 自定义控件类型属性（标识字段对应的界面生成控件类型）
	/// </summary>
	[AttributeUsage(AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Parameter, AllowMultiple = false)]
	public class ControlTypeAttribute : Attribute
	{

		/// <summary>
		/// 控件类型
		/// TextBox,CheckBox,ComboBox等
		/// </summary>
		public string Type { get; set; }

		/// <summary>
		/// 控件关联的取值集合
		/// </summary>
		public string[] Values { get; set; }
	}
}
